package ooday04test;

public class AnonInterClassDemo {
    public static void main(String[] args) {
        //匿名内部类
        Inter inter=new Inter(){};
        //已经有的类
        Swim swim=new Swim() {
            @Override
            public void swim() {

            }
        };
        Inter inter1=new Inter(){};
        //
        InterInter interInter=new InterInter(){
            public void show(){
                System.out.println("show");
            }
        };
        interInter.show();
        InterInter interInter1=new InterInter(){
            public void show(){
                System.out.println("show1");
            }
        };
        interInter1.show();

    }
}
